<div class="layui-input-inline">
    <a class="layui-btn model-a" href="{:url('Pricemanage/addCarAndDrive')}" data-title="添加车辆及驾驶员等级">添加车辆及驾驶员等级</a>
</div>
<table class="layui-table" lay-filter="edit-table" lay-data="{method: 'post',loading:'true', url:'{:url('Pricemanage/drivecarprice')}', page:true, id:'idDemo'}" lay-filter="test">
    <thead>
    <tr>
        <th lay-data="{field:'name'}">车型</th>
        <th lay-data="{field:'drive_level'}">驾驶证等级</th>
        <th lay-data="{toolbar:'#vehicle_price'}">租金（公里）</th>
        <th lay-data="{toolbar:'#vehicle_priceday'}">租金（天数）</th>
        <th lay-data="{toolbar:'#info',width:180,}">操作</th>
    </tr>
    </thead>
</table>
<script type="text/html" id="vehicle_price">
    {{#  if(d.driver_car_price == null || d.driver_car_price == ""){ }}
    暂未设置
    {{#  } else{ }}
    {{d.driver_car_price}}
    {{#  } }}
</script>
<script type="text/html" id="vehicle_priceday">
    {{#  if(d.driver_car_priceday == null || d.driver_car_priceday == ""){ }}
    暂未设置
    {{#  } else{ }}
    {{d.driver_car_priceday}}
    {{#  } }}
</script>
<script type="text/html" id="info">
    <a class="layui-btn layui-btn-normal layui-btn-xs  model-a" data-title="编辑" href="{:url('Pricemanage/updCarAndDrive')}?id={{d.driver_car_id}}">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs  edit-table ajax-delete delete" data-title="清空" data-msg="确认清空？" href="{:url('Pricemanage/delCarAndDrive')}?id={{d.driver_car_id}}">清空</a>
</script>


